package com.atguigu.registration.user.service;

import com.atguigu.registration.model.user.UserInfo;
import com.atguigu.registration.vo.user.LoginVo;
import com.atguigu.registration.vo.user.UserAuthVo;
import com.atguigu.registration.vo.user.UserInfoQueryVo;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.Map;

/**
 * @Author: Jiang Yizhi
 * @Date: 2022/5/3 4:38 PM
 */
public interface UserInfoService extends IService<UserInfo>{

    /** 用户手机号登录接口 */
    Map<String, Object> loginUser(LoginVo loginVo);

    UserInfo selectWxInfoOpenId(String openid);

    void userAuth(Long userId, UserAuthVo userAuthVo);

    /** 用户列表（条件查询带分页) */
    IPage<UserInfo> selectPage(Page<UserInfo> pageParam, UserInfoQueryVo userInfoQueryVo);

    /** 用户锁定 */
    void lock(Long userId, Integer status);

    /** 用户详情 */
    Map<String, Object> show(Long userId);

    /** 认证审批 */
    void approval(Long userId, Integer authStatus);
}
